package com.example.demoes.entity;

import lombok.Data;
//import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/*import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;*/
import java.io.Serializable;

@Data
/*@Entity
@Table(name = "etl_app")*/
@Document(indexName = "notes")
public class EtlApp implements Serializable {
    @Id
/*    @GenericGenerator(name="UUID",strategy="uuid")
    @GeneratedValue(generator="UUID")*/
    @Field(type = FieldType.Keyword)
    private String id;
    private String code;
    @Field(type = FieldType.Keyword)
    private String name;
    @Field(type = FieldType.Keyword)
    private String des;
    private String etlAppSysDes;
    @Field(type = FieldType.Text)
    private String etlSys;
    private String description;
}
